package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.CategoryEntry;
import com.asion.qkan.entry.RecommendEntry;
import com.asion.qkan.ui.contract.FindContract;

/**
 * Created by gino on 16-10-15.
 */

public class CategoryPresenter extends FindContract.AllPresenter{
    @Override
    public void setAllCategoryDatas(int tag) {
       mModel.getAllDatas(tag, new FindContract.OnAllDatas() {
           @Override
           public void OnAllDatasSuccess(CategoryEntry categoryEntry) {
               mView.showDataSuccess(categoryEntry);
           }

           @Override
           public void Failed(Throwable T) {
                mView.showDataError(T);
           }
       });
    }
}
